import Vue from 'vue'
import Router from 'vue-router'
// import Index from '../pages/Index/Index'
const Index = i => require.ensure([], () => i(require('../pages/Index/Index')))
const StartAssess = start => require.ensure([], () => start(require('../pages/Index/secondPage/StartAssess')))
const MultipleChoice = choice => require.ensure([], () => choice(require('../pages/Index/secondPage/MultipleChoice')))
// import Broadcast from '../pages/Broadcast/Broadcast'
const Broadcast = b => require.ensure([], () => b(require('../pages/Broadcast/Broadcast')))
// import AudioBook from '../pages/AudioBook/AudioBook'
const AudioBook = a => require.ensure([], () => a(require('../pages/AudioBook/AudioBook')))
// import Group from '../pages/Group/Group'
const Group = g => require.ensure([], () => g(require('../pages/Group/Group')))
// import Mine from '../pages/Mine/Mine'
const Mine = m => require.ensure([], () => m(require('../pages/Mine/Mine')))
// import Manger from '../pages/Manger/Manger'
const Manger = ma => require.ensure([], () => ma(require('../pages/Manger/Manger')))
// import EditAddress1 from '../pages/AudioBook/children/EditAddress1'
const EditAddress1 = e => require.ensure([], () => e(require('../pages/AudioBook/children/EditAddress1')))
const EditAddress2 = e2 => require.ensure([], () => e2(require('../pages/AudioBook/children/EditAddress2')))
// import FoldPanel from '../pages/AudioBook/children/FoldPanel'
const Panel = pa => require.ensure([], () => pa(require('../pages/AudioBook/children/Panel')))
const Vant = va => require.ensure([], () => va(require('../pages/AudioBook/children/Vant')))
const Vant2 = va2 => require.ensure([], () => va2(require('../pages/AudioBook/children/Vant2')))
const FoldPanel = f => require.ensure([], () => f(require('../pages/AudioBook/children/flodpanel/FoldPanel')))
const FoldPanel2 = f2 => require.ensure([], () => f2(require('../pages/AudioBook/children/flodpanel/FoldPanel2')))
// import InCome from '../pages/Index/Governance/InCome'
const InCome = i => require.ensure([], () => i(require('../pages/Index/Governance/InCome')))
// import Pay from '../pages/Index/Governance/Pay'
const Pay = p => require.ensure([], () => p(require('../pages/Index/Governance/Pay')))
// import Summary from '../pages/Index/Governance/Summary'
const Summary = s => require.ensure([], () => s(require('../pages/Index/Governance/Summary')))
// import advert from '../pages/AudioBook/children/advert'
const advert = ad => require.ensure([], () => ad(require('../pages/AudioBook/children/advert')))
// import ViewVoucher from '../pages/Index/Governance/ViewVoucher'
const ViewVoucher = v => require.ensure([], () => v(require('../pages/Index/Governance/ViewVoucher')))
// import Gover from '../pages/Index/Governance/Gover'
const Gover = go => require.ensure([], () => go(require('../pages/Index/Governance/Gover')))
// import MangerOne from '../pages/Manger/MangerOne'
const MangerOne = mao => require.ensure([], () => mao(require('../pages/Manger/MangerOne')))
// import MangerTwo from '../pages/Manger/MangerTwo'
const MangerTwo = mat => require.ensure([], () => mat(require('../pages/Manger/MangerTwo')))
// import MangerThree from '../pages/Manger/MangerThree'
const MangerThree = mar => require.ensure([], () => mar(require('../pages/Manger/MangerThree')))
// import Canves from '../pages/AudioBook/children/Canves'
const Canves = c => require.ensure([], () => c(require('../pages/AudioBook/children/Canves')))
// import ChangeImage from '../pages/AudioBook/children/ChangeImage'
const ChangeImage = chi => require.ensure([], () => chi(require('../pages/AudioBook/children/ChangeImage')))
const vueMixin = vmi => require.ensure([], () => vmi(require('../pages/AudioBook/children/vueMixin')))
// import CanvesSign from '../pages/AudioBook/children/CanvesSign'
const CanvesSign = cs => require.ensure([], () => cs(require('../pages/AudioBook/children/CanvesSign')))
// import CheckBox from '../pages/AudioBook/children/CheckBox'
const CheckBox = ck => require.ensure([], () => ck(require('../pages/AudioBook/children/CheckBox')))
// import addInput from '../pages/AudioBook/children/addInput'
const addInput = ai => require.ensure([], () => ai(require('../pages/AudioBook/children/addInput')))
const addSelect = as => require.ensure([], () => as(require('../pages/AudioBook/children/addSelect')))
// import timePicker from '../pages/AudioBook/children/timePicker'
const timePicker = tp => require.ensure([], () => tp(require('../pages/AudioBook/children/timePicker')))
// import lianxi from '../pages/AudioBook/children/lianxi'
const lianxi = lx => require.ensure([], () => lx(require('../pages/AudioBook/children/lianxi')))
// import lianxi1 from '../pages/AudioBook/children/lianxi1'
const lianxi1 = lx1 => require.ensure([], () => lx1(require('../pages/AudioBook/children/totalDirectory/lianxi1')))
// import lianxi2 from '../pages/AudioBook/children/lianxi2'
const lianxi2 = lx2 => require.ensure([], () => lx2(require('../pages/AudioBook/children/totalDirectory/lianxi2')))
// import lianxi3 from '../pages/AudioBook/children/lianxi3'
const lianxi3 = lx3 => require.ensure([], () => lx3(require('../pages/AudioBook/children/totalDirectory/lianxi3')))
// import lianxi4 from '../pages/AudioBook/children/lianxi4'
const lianxi4 = lx4 => require.ensure([], () => lx4(require('../pages/AudioBook/children/totalDirectory/lianxi4')))
// import lianxi5 from '../pages/AudioBook/children/lianxi5'
const lianxi5 = lx5 => require.ensure([], () => lx5(require('../pages/AudioBook/children/totalDirectory/lianxi5')))
const lianxi6 = lx6 => require.ensure([], () => lx6(require('../pages/AudioBook/children/totalDirectory/lianxi6')))
const lianxi7 = lx7 => require.ensure([], () => lx7(require('../pages/AudioBook/children/totalDirectory/lianxi7')))
const lianxi8 = lx8 => require.ensure([], () => lx8(require('../pages/AudioBook/children/totalDirectory/lianxi8')))
const lianxi9 = lx9 => require.ensure([], () => lx9(require('../pages/AudioBook/children/totalDirectory/lianxi9')))
const lianxi10 = lx10 => require.ensure([], () => lx10(require('../pages/AudioBook/children/totalDirectory/lianxi10')))
const lianxi11 = lx11 => require.ensure([], () => lx11(require('../pages/AudioBook/children/totalDirectory/lianxi11')))
const lianxi12 = lx12 => require.ensure([], () => lx12(require('../pages/AudioBook/children/totalDirectory/lianxi12')))
const lianxi13 = lx13 => require.ensure([], () => lx13(require('../pages/AudioBook/children/totalDirectory/lianxi13')))
const lianxi14 = lx14 => require.ensure([], () => lx14(require('../pages/AudioBook/children/totalDirectory/lianxi14')))
const lianxi15 = lx15 => require.ensure([], () => lx15(require('../pages/AudioBook/children/totalDirectory/lianxi15')))
const lianxi16 = lx16 => require.ensure([], () => lx16(require('../pages/AudioBook/children/totalDirectory/lianxi16')))
const lianxi17 = lx17 => require.ensure([], () => lx17(require('../pages/AudioBook/children/totalDirectory/lianxi17')))
const lianxi18 = lx18 => require.ensure([], () => lx18(require('../pages/AudioBook/children/totalDirectory/lianxi18')))
const lianxi19 = lx19 => require.ensure([], () => lx19(require('../pages/AudioBook/children/totalDirectory/lianxi19')))
const lianxi20 = lx20 => require.ensure([], () => lx20(require('../pages/AudioBook/children/totalDirectory/lianxi20')))
const lianxi21 = lx21 => require.ensure([], () => lx21(require('../pages/AudioBook/children/totalDirectory/lianxi21')))
const lianxi22 = lx22 => require.ensure([], () => lx22(require('../pages/AudioBook/children/totalDirectory/lianxi22')))
const lianxi23 = lx23 => require.ensure([], () => lx23(require('../pages/AudioBook/children/totalDirectory/lianxi23')))
const lianxi24 = lx24 => require.ensure([], () => lx24(require('../pages/AudioBook/children/totalDirectory/lianxi24')))
const lianxi25 = lx25 => require.ensure([], () => lx25(require('../pages/AudioBook/children/totalDirectory/lianxi25')))
const lianxi26 = lx26 => require.ensure([], () => lx26(require('../pages/AudioBook/children/totalDirectory/lianxi26')))
const lianxi27 = lx27 => require.ensure([], () => lx27(require('../pages/AudioBook/children/totalDirectory/lianxi27')))
const lianxi28 = lx28 => require.ensure([], () => lx28(require('../pages/AudioBook/children/totalDirectory/lianxi28')))
const lianxi29 = lx29 => require.ensure([], () => lx29(require('../pages/AudioBook/children/totalDirectory/lianxi29')))
const lianxi30 = lx30 => require.ensure([], () => lx30(require('../pages/AudioBook/children/totalDirectory/lianxi30')))
// import chatPage from '../pages/AudioBook/children/chatPage'
const chatPage = cp => require.ensure([], () => cp(require('../pages/AudioBook/children/chatPage')))
// import preImage from '../pages/AudioBook/children/previewImag'
const preImage = pi => require.ensure([], () => pi(require('../pages/AudioBook/children/previewImag')))
// import imgeCheck from '../pages/AudioBook/children/child/imgeCheck'
const imgeCheck = ic => require.ensure([], () => ic(require('../pages/AudioBook/children/child/imgeCheck')))
const cOne = co => require.ensure([], () => co(require('../pages/AudioBook/children/childs/cOne')))
const cTwo = cw => require.ensure([], () => cw(require('../pages/AudioBook/children/childs/cTwo')))
const cThree = ct => require.ensure([], () => ct(require('../pages/AudioBook/children/childs/cThree')))
const Total = total => require.ensure([], () => total(require('../pages/AudioBook/children/Total')))


Vue.config.productionTip = false
Vue.use(Router)

export default new Router({
  mode: 'history',
  scrollBehavior(to, from, savedPosition) {
    if (savedPosition) {
      return savedPosition
    } else {
      return {
        x: 0,
        y: 0
      }
    }
  },
  linkActiveClass: 'active',
  routes: [
    {
      path: '/Index',
      redirect: '/',
      // 导航栏显示的文字
      meta: {
        title: '首页'
      }
    },
    {
      path: '*',
      redirect: '/',
      meta: {
        title: '首页'
      }
    },
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/Index/StartAssess',
      name: 'StartAssess',
      component: StartAssess
    },
    {
      path: '/MultipleChoice',
      name: 'MultipleChoice',
      component: MultipleChoice
    },
    {
      path: '/broadcast',
      name: 'Broadcast',
      component: Broadcast
    },
    {
      path: '/audioBook',
      name: 'AudioBook',
      component: AudioBook
    },
    {
      path: '/EditAddress1',
      name: 'EditAddress1',
      component: EditAddress1
    },
    {
      path: '/EditAddress2',
      name: 'EditAddress2',
      component: EditAddress2
    },
    {
      path: '/Canves',
      name: 'Canves',
      component: Canves
    },
    {
      path: '/ChangeImage',
      name: 'ChangeImage',
      component: ChangeImage
    },
    {
      path: '/vueMixin',
      name: 'vueMixin',
      component: vueMixin
    },
    {
      path: '/CanvesSign',
      name: 'CanvesSign',
      component: CanvesSign
    },
    {
      path: '/CheckBox',
      name: 'CheckBox',
      component: CheckBox
    },
    {
      path: '/addInput',
      name: 'addInput',
      component: addInput
    },
    {
      path: '/addSelect',
      name: 'addSelect',
      component: addSelect
    },
    {
      path: '/timePicker',
      name: 'timePicker',
      component: timePicker
    },
    {
      path: '/Total',
      name: 'Total',
      component: Total
    },
    {
      path: '/lianxi',
      name: 'lianxi',
      component: lianxi
    },
    {
      path: '/lianxi1',
      name: 'lianxi1',
      component: lianxi1
    },
    {
      path: '/lianxi2',
      name: 'lianxi2',
      component: lianxi2
    },
    {
      path: '/lianxi3',
      name: 'lianxi3',
      component: lianxi3
    },
    {
      path: '/lianxi4',
      name: 'lianxi4',
      component: lianxi4
    },
    {
      path: '/lianxi5',
      name: 'lianxi5',
      component: lianxi5
    },
    {
      path: '/lianxi6',
      name: 'lianxi6',
      component: lianxi6
    },
    {
      path: '/lianxi7',
      name: 'lianxi7',
      component: lianxi7
    },
    {
      path: '/lianxi8',
      name: 'lianxi8',
      component: lianxi8
    },
    {
      path: '/lianxi9',
      name: 'lianxi9',
      component: lianxi9
    },
    {
      path: '/lianxi10',
      name: 'lianxi10',
      component: lianxi10
    },
    {
      path: '/lianxi11',
      name: 'lianxi11',
      component: lianxi11
    },
    {
      path: '/lianxi12',
      name: 'lianxi12',
      component: lianxi12
    },
    {
      path: '/lianxi13',
      name: 'lianxi13',
      component: lianxi13
    },
    {
      path: '/lianxi14',
      name: 'lianxi14',
      component: lianxi14
    },
    {
      path: '/lianxi15',
      name: 'lianxi15',
      component: lianxi15
    },
    {
      path: '/lianxi16',
      name: 'lianxi16',
      component: lianxi16
    },
    {
      path: '/lianxi17',
      name: 'lianxi17',
      component: lianxi17
    },
    {
      path: '/lianxi18',
      name: 'lianxi18',
      component: lianxi18
    },
    {
      path: '/lianxi19',
      name: 'lianxi19',
      component: lianxi19,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/lianxi20',
      name: 'lianxi20',
      component: lianxi20
    },
    {
      path: '/lianxi21',
      name: 'lianxi21',
      component: lianxi21
    },
    {
      path: '/lianxi22',
      name: 'lianxi22',
      component: lianxi22
    },
    {
      path: '/lianxi23',
      name: 'lianxi23',
      component: lianxi23
    },
    {
      path: '/lianxi24',
      name: 'lianxi24',
      component: lianxi24
    },
    {
      path: '/lianxi25',
      name: 'lianxi25',
      component: lianxi25
    },
    {
      path: '/lianxi26',
      name: 'lianxi26',
      component: lianxi26
    },
    {
      path: '/lianxi27',
      name: 'lianxi27',
      component: lianxi27
    },
    {
      path: '/lianxi28',
      name: 'lianxi28',
      component: lianxi28
    },
    {
      path: '/lianxi29',
      name: 'lianxi29',
      component: lianxi29
    },
    {
      path: '/lianxi30',
      name: 'lianxi30',
      component: lianxi30
    },
    {
      path: '/imgeCheck',
      name: 'imgeCheck',
      component: imgeCheck
    },
    {
      path: '/cOne',
      name: 'cOne',
      component: cOne
    },
    {
      path: '/cTwo',
      name: 'cTwo',
      component: cTwo
    },
    {
      path: '/cThree',
      name: 'cThree',
      component: cThree
    },
    {
      path: '/preImage',
      name: 'preImage',
      component: preImage
    },
    {
      path: '/chatPage',
      name: 'chatPage',
      component: chatPage
    },
    {
      path: '/advert',
      name: 'advert',
      component: advert
    },
    {
      path: '/Panel',
      name: 'Panel',
      component: Panel
    },
    {
      path: '/Vant',
      name: 'Vant',
      component: Vant
    },
    {
      path: '/Vant2',
      name: 'Vant2',
      component: Vant2
    },
    {
      path: '/FoldPanel',
      name: 'FoldPanel',
      component: FoldPanel
    },
    {
      path: '/FoldPanel2',
      name: 'FoldPanel2',
      component: FoldPanel2
    },
    {
      path: '/group',
      name: 'Group',
      component: Group
    },
    {
      path: '/mine',
      name: 'Mine',
      component: Mine
    },
    {
      path: '/manger',
      name: 'Manger',
      component: Manger,
      redirect: '/MangerOne',
      children: [
        {
          path: '/MangerOne',
          name: 'MangerOne',
          component: MangerOne
        },
        {
          path: '/MangerTwo',
          name: 'MangerTwo',
          component: MangerTwo
        },
        {
          path: '/MangerThree',
          name: 'MangerThree',
          component: MangerThree
        }
      ]
    },
    {
      path: '/ViewVoucher/:id',
      name: 'ViewVoucher',
      component: ViewVoucher
    },
    {
      path: '/Governance/Gover',
      name: 'Gover',
      component: Gover,
      redirect: '/Governance/InCome',
      children: [
        {
          path: '/Governance/InCome',
          name: 'InCome',
          component: InCome
        },
        {
          path: '/Governance/Pay',
          name: 'Pay',
          component: Pay
        },
        {
          path: '/Governance/Summary',
          name: 'Summary',
          component: Summary
        }
      ]
    }
  ]
})
